package com.xthink.common.pojo.sys;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
@TableName("sys_role_menu")
public class RoleMenu {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("role_id")
    private Integer roleId;

    @TableField("menu_id")
    private Integer menuId;

    /*
     * 注册时间,字段自动填充内容
     * */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    /*
     * 更新时间，字段自动填充内容
     * */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
